{extend name="public/base" /} {block name="title"}
<title>网站配置</title>
{__block__}
<link href="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/iCheck/1.0.2/skins/all.css" rel="stylesheet">
<script>
    var configUrl = "{:url('admin/config/conf')}";
</script> {/block} {block name="page-heading"}
<div class="col-sm-4">
    <h2>网站配置</h2>
    <ol class="breadcrumb">
        <li>
            <a href="{:url('admin/index/home')}">主页</a>
        </li>
        <li>
            <strong>网站配置</strong>
        </li>
    </ol>
</div>
{/block} {block name="content"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>网站信息</h5>
        <div class="ibox-tools">
            <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
            <a class="close-link"><i class="fa fa-times"></i></a>
        </div>
    </div>
    <div class="ibox-content">
        <form class="form-horizontal" method="post" action="?">
            <div class="tabs-container">
                <ul class="nav nav-tabs">
                    <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">网站基本信息</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">邮件服务器</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">社交媒体</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">第三方登录</a>
                    </li>
                </ul>
                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                        <div class="panel-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站名称：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_name" name="site_name" value="{$data.site_name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站地址：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_url" name="site_url" value="{$data.site_url}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">关键词设定：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_keywords" name="site_keywords" value="{$data.site_keywords}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站描述：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_description" name="site_description" value="{$data.site_description}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站作者：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_author" name="site_author" value="{$data.site_author}">
                                </div>
                            </div>
                            <div class=" form-group">
                                <label class="col-sm-2 control-label">启用站点：</label>
                                <div class="col-sm-10">
                                    <label class="radio-inline i-checks"><input type="radio" value="1" id="site_status1" name="site_status" {eq name="data.site_status" value="1"}checked{/eq}>&nbsp;&nbsp;是</label>
                                    <label class="radio-inline i-checks"><input type="radio" value="0" id="site_status2" name="site_status" {eq name="data.site_status" value="0"}checked{/eq}>&nbsp;&nbsp;否</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">站点关闭说明：</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" id="site_close_word" name="site_close_word">{$data.site_close_word}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">版权信息：</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" id="site_copyright" name="site_copyright">{$data.site_copyright}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">备案号：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="site_icp_num" name="site_icp_num" value="{$data.site_icp_num}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">站点通知：</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" id="site_notification" name="site_notification">{$data.site_notification}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-10 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="tab-2" class="tab-pane">
                        <div class="panel-body">

                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱服务器：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="mail_Host" name="mail_Host" value="{$data.mail_Host}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">发件端口：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="mail_Port" name="mail_Port" value="{$data.mail_Port}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">安全协议：</label>
                                <div class="col-sm-10">
                                    <select class="form-control m-b" name="mail_SMTPSecure" id="mail_SMTPSecure">
                                        <option value="">请选择协议</option>
                                        <option value="tls" {eq name="data.mail_SMTPSecure" value="tls"}selected{/eq}>TLS</option>
                                        <option value="ssl"{eq name="data.mail_SMTPSecure" value="ssl"}selected{/eq}>SSL</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户名：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="mail_Username" name="mail_Username" value="{$data.mail_Username}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">密码：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="mail_Password" name="mail_Password" value="{$data.mail_Password}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">发件名：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="mail_FromName" name="mail_FromName" value="{$data.mail_FromName}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-10 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="tab-3" class="tab-pane">
                        <div class="panel-body">

                            <div class="form-group">
                                <label class="col-sm-2 control-label">个人头像：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="avatar" name="avatar" value="{$data.avatar}">
                                    <span class="help-block m-b-none text-danger">请填写链接，建议使用120*120大小图片</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">微博：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="weibo" name="weibo" value="{$data.weibo}">
                                    <span class="help-block m-b-none text-danger">请填写微博链接</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">GitHub:</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="github" name="github" value="{$data.github}">
                                    <span class="help-block m-b-none text-danger">请填写GitHub链接</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱：</label>
                                <div class="col-sm-10">
                                    <input type="email" class="form-control" id="mail" name="mail" value="{$data.mail}">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-10 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="tab-4" class="tab-pane">
                        <div class="panel-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">QQ APP_ID：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="qq_app_id" name="qq_app_id" value="{$data.qq_app_id}">
                                    <span class="help-block m-b-none text-danger">请填写申请的APP_ID</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">QQ APP_KEY</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="qq_app_key" name="qq_app_key" value="{$data.qq_app_key}">
                                    <span class="help-block m-b-none text-danger">请填写申请的APP_KEY</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">百度推送接口</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="baidu_site_url" name="baidu_site_url" value="{$data.baidu_site_url}">
                                    <span class="help-block m-b-none text-danger">请填写百度推送接口</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-10 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{/block} {block name="script"} {__block__}
<script src="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.js"></script>
<script src="//cdn.bootcss.com/iCheck/1.0.2/icheck.min.js"></script>
<script src="__CUSTOME__/js/admin.common.js"></script>
<script>
    $(function () {
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        });
    });
</script> {/block}
